package lists;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import com.google.common.collect.Lists;

/**
 * 演示 guava版本Lists的使用
 * @author fangjiaxiaobai 【公众号：方家小白】
 * @date 2020-07-13 10:47
 * @since 1.0.0
 */
public class ListsDemo {


    public static void main(String[] args) {
        List<Integer> collect = Stream.of(1, 2, 3, 4, 5, 6, 7, 8, 9, 10).collect(Collectors.toList());

        Lists.partition(collect,2).forEach(System.out::println);

    }

}
